package fristphase.day9_07.my_plane_battle;

import javax.swing.*;

public class Bullet extends FlyingObject{
    Bullet(int x,int y){
        super(8,20,x,y,3);
    }
    public void step(){
        y -= speed;
    }
    public ImageIcon getImage(){
        return Images.bullet;
    }
    public boolean bulletOutBoundsOf(){
        return y<=-height || x<-width || x>World.WIDTH;
    }
}
